﻿<%@ Page Title="" Language="C#" MasterPageFile="~/mobile.master" AutoEventWireup="true" CodeFile="edit.aspx.cs" Inherits="Default2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PlaceHolder_PageTitle" Runat="Server">
    <img src="../images/icon-container.png" />Edit Container:
    <asp:Label ID="lblID" runat="server" Text=""></asp:Label>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="PlaceHolder_Content" Runat="Server">
    <table class="form">
        <tr>
            <td>Weight</td>
            <td><asp:TextBox ID="txtWeight" runat="server" type="number"></asp:TextBox></td>
        </tr>
        <tr>
            <td>Type</td>
            <td>
                <%-- Databind ddlType to type table in database --%>
                    <asp:DropDownList ID="ddlType" runat="server"   DataTextField="CategoryType" DataValueField ="FoodCategoryID">
                        <asp:ListItem Value="1">Select Food Type</asp:ListItem>
                    </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td>Location</td>
            <td>
                <%-- Databind ddlLocation to location table in database --%>
                <asp:DropDownList ID="ddlLocation" runat="server"  DataTextField="RoomName" DataValueField ="LocationID">
                    <asp:ListItem Value="1">Select Location</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:Label ID="lblWeightError" runat="server" ForeColor="Red" />
            </td>
        </tr>
        </table>
    <ul class="vertical-list">
        <li><asp:LinkButton ID="btnSave" runat="server" Text="Save" CssClass="submit" OnClick="btnSave_Click" /></li>
        <li><a href="default.aspx" class="cancel">Cancel</a></li>
    </ul>        
                

                

    
         

</asp:Content>

